
#ifndef __DCMPRODUCTIDS_H_
#define __DCMPRODUCTIDS_H_

// these enums are immutable - DO NOT CHANGE THE VALUES
#ifdef __midl
typedef[v1_enum]enum 
#else
typedef enum _eDCMProductId 
#endif
{
	 kProdIDInvalid 	= -1
	,kProdIDNone 		= 0
	,kProdIdWinTube		= 1
	// put products above so that this value will increase as we add products
	,kNumProducts
}eDCMProductId;


#ifndef __midl
#include <tchar.h>
#include <string.h>
#include <stdio.h>

inline eDCMProductId GetDCMProdId(const TCHAR* pName)
{
	const TCHAR* pNames[] = {	_T("Generic License"),
								_T("WinTube"), 
							};

	for(unsigned int i = 1; i < sizeof(pNames)/sizeof(TCHAR*); i++)
		if(_tcsicmp(pNames[i], pName) == 0)
			return (eDCMProductId) i;

	return kProdIDNone;
}


inline const TCHAR* GetDCMProdName(eDCMProductId id)
{
	switch(id)
	{
		case kProdIdWinTube:
			return _T("WinTube");
		default:
			return _T("None");
	};
	
}


#endif

#endif //#ifndef __DCMPRODUCTIDS_H_


